#include <conio.h>
#include <tchar.h>
#include <fwMemDbg.h>
#include <Device\fwDevice.h>
#include "..\..\AppSource\Header\Game.h"

int _tmain()
{
	_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);

	Device::GetInstance()->CreateDevicePlatform(Device::DeviceID::Win32, 960, 540, "Gama Demo", 0);
	Device::GetInstance()->RegisterGameContext(Game::GetInstance());
	Device::GetInstance()->Init();
	Device::GetInstance()->Run();
	Device::GetInstance()->Destroy();
	Device::GetInstance()->DestroyInstance();

	_getch();

	return 0;
}